package com.parser;

import java.lang.String; /**
 * This entity class contains information about a syntax error.
 */
public class LineError 
{
	private int  m_column;				/* the column number of the error   */
	private String m_errorMsg;             /* and the associated error message */

	/**
	 * @return The column where the error is located
	 */
	public int getColumn()
	{
		return this.m_column;
	}
	
	/**
	 * @return The error message
	 */
	public String getError()
	{
		return this.m_errorMsg;
	}
	
	/**
	 * Sets error information.
	 * @param col The column where the error is located
	 * @param err The error message
	 */
	public void set(int col, String err)	/* Set column number and error		*/
	{
		this.m_column = col;
		this.m_errorMsg = err;
	}
}
